﻿using HZH_Controls.Forms;
using Petroleum.DB.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Petroleum.UC.Public
{
    public partial class AlertForm : FrmWithTitle
    {
        public delegate void getDepthRangeDelege(DepthRangeModel list);
        public getDepthRangeDelege GetDepthRange;
        public AlertForm(UserControl userControl, string title, getDepthRangeDelege getinfo)
        {
            InitializeComponent();
            this.Title = title;
            this.IsShowCloseBtn = true;
            this.Controls.Add(userControl);
            this.Height = userControl.Height + 10;
            this.Width = userControl.Width;
            this.GetDepthRange = getinfo;
        }
    }
}
